package com.dev;
import android.widget.ImageView;
import android.util.AttributeSet;
import android.content.Context;
import android.view.Gravity;
import android.graphics.ColorFilter;
import android.graphics.ColorMatrixColorFilter;
public class IconView extends ImageView{
	public final int COLORS_MASK=0xadffffff;
	public float scaleWidth=5/4f;
    public final static ColorMatrixColorFilter unable=new ColorMatrixColorFilter(new float[]{
        1,0,0,0,0 ,            
        0,1,0,0,0,
        0,0,1,0,0,
        0,0,0,1,-100,
    });
    public IconView(Context ctx){
		super(ctx);
		setFocusable(false);
	}
	@Override
	protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
		int w=MeasureSpec.getSize(widthMeasureSpec);
		int h=MeasureSpec.getSize(heightMeasureSpec);
		int w_will=Math.round(h*scaleWidth);
		setMeasuredDimension(w_will,h);
		//super.onMeasure(widthMeasureSpec, heightMeasureSpec);
	}
}
